Skip to content

NXPY-269: Fix functional test#331

Merged
S-Ghosh-Dev2 merged 1 commit intowip-NXPY-270-upgrade-python-versionfrom
wip-NXPY-269-fix-functional-test
Mar 27, 2026
Merged

NXPY-269: Fix functional test#331
S-Ghosh-Dev2 merged 1 commit intowip-NXPY-270-upgrade-python-versionfrom
wip-NXPY-269-fix-functional-test

Conversation

@S-Ghosh-Dev2
Copy link
Copy Markdown
Collaborator

@S-Ghosh-Dev2 S-Ghosh-Dev2 commented Mar 27, 2026

Summary by Sourcery

Update functional test GitHub Actions workflow configuration to use the latest supported Python version and correct conditional and branch syntax.

CI:

  • Adjust functional test workflow to target all PR branches using array syntax.
  • Bump functional test job Python version from 3.9 to 3.13.1 in the CI matrix.
  • Simplify the Codecov upload step condition to use a single GitHub Actions expression.

Copilot AI review requested due to automatic review settings March 27, 2026 09:47
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Mar 27, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the functional tests GitHub Actions workflow to use correct YAML syntax for branch filters, bump the Python test version to 3.13.1, and simplify the Codecov conditional expression; the changelog file is touched but has no visible content changes in the diff.

File-Level Changes

Change Details Files
Fix GitHub Actions workflow syntax and configuration for functional tests.
  • Change pull_request branch filter from a string to an array syntax to conform to GitHub Actions expectations.
  • Update the Python version used in the functional test matrix from 3.9 to 3.13.1.
  • Simplify the Codecov upload step condition by moving the success/failure logic inside a single GitHub Actions expression.
.github/workflows/functional_tests.yml
Changelog file referenced with no substantive diff changes.
  • Confirm that CHANGELOG.rst is included in the PR but has no effective modifications in the provided diff.
CHANGELOG.rst

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Using if: ${{ success() || failure() }} is redundant in GitHub Actions and won’t run on cancelled workflows; if the intent is to always upload coverage when the job completes, consider using if: ${{ always() }} instead.
  • Before pinning to Python 3.13.1 only, verify that all tools invoked in the workflow (tox envs, dependencies, and Nuxeo client versions) are compatible with 3.13; if not, you may want to keep a lower stable version in the matrix alongside 3.13 or pin to 3.13 instead of a specific patch.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Using `if: ${{ success() || failure() }}` is redundant in GitHub Actions and won’t run on cancelled workflows; if the intent is to always upload coverage when the job completes, consider using `if: ${{ always() }}` instead.
- Before pinning to Python `3.13.1` only, verify that all tools invoked in the workflow (tox envs, dependencies, and Nuxeo client versions) are compatible with 3.13; if not, you may want to keep a lower stable version in the matrix alongside 3.13 or pin to `3.13` instead of a specific patch.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates CI configuration to resolve functional test execution issues and records the change in the changelog.

Changes:

  • Adjust pull_request branch filter syntax in the functional tests workflow.
  • Update the functional tests workflow to run on Python 3.13.1 (matching the repo’s declared supported versions in tox.ini).
  • Minor workflow expression cleanup for the Codecov upload condition.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CHANGELOG.rst Adds the NXPY-269 entry documenting the functional test fix.
.github/workflows/functional_tests.yml Updates PR trigger syntax, bumps Python version to 3.13.1, and simplifies the Codecov if expression.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@S-Ghosh-Dev2 S-Ghosh-Dev2 merged commit 1a30cd0 into wip-NXPY-270-upgrade-python-version Mar 27, 2026
11 checks passed
@S-Ghosh-Dev2 S-Ghosh-Dev2 deleted the wip-NXPY-269-fix-functional-test branch March 27, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants